const fs  = require('fs')
function httpReadFile(path, response) {
    fs.readFile(path, (error,data) => {
        
        if (error) {

            response.write('请求出错');
            response.end(error);
        } else {
            response.end(data)
        }

    })
}